package com.zdy.utils;

import android.text.TextUtils;

import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;

public class StringUtils {
    public static String returnString(String origin) {
        if (origin == null) {
            return "";
        } else {
            return origin;
        }
    }

    public static String returnTime(long date) {
        SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy/MM/dd");
        return simpleDateFormat.format(new Date(date));
    }

}
